I think we need to think of the law of conservation of energy too:
https://en.wikipedia.org/wiki/Conservation_of_energy
In physics, the law of conservation of energy states that the total energy of an isolated system remains constant—it is said to be conserved over time. Energy can neither be created nor destroyed; rather, it transforms from one form to another. For instance, chemical energy can be converted to kinetic energy in the explosion of a stick of dynamite.
A consequence of the law of conservation of energy is that a perpetual motion machine of the first kind cannot exist. That is to say, no system without an external energy supply can deliver an unlimited amount of energy to its surroundings.[1]